/*
* Copyright (C) 2019 ~ 2021 Uniontech Software Technology Co.,Ltd.
*
* Author:     yanghongwei <yanghongwei@uniontech.com>
*
* Maintainer: yanghongwei <yanghongwei@uniontech.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef TUOGUN_PRODUCT_LINE_H
#define TUOGUN_PRODUCT_LINE_H

#include <Poco/DateTime.h>

#include <string>
#include <vector>

struct TuogunProductLine
{
    uint32_t    id;
    std::string name;
    std::string description;
    int32_t     pers_id;
    std::string address;
    std::string manager;
    std::string link_man;
    std::string link_mobile;
    std::string link_address;
    uint8_t     is_enable;
    Poco::DateTime create_time;
    Poco::DateTime update_time;
};

void printf(const TuogunProductLine &device);

class TuogunProductLineManager
{
public:
    TuogunProductLineManager() = default;

    static std::vector<TuogunProductLine> getTuogunProductLineByPersId(int32_t persId);
    TuogunProductLine getTuogunProductLineByProductId(uint32_t productId);
    std::vector<TuogunProductLine> getAllTuogunProductLine();
};

#endif

// public int insert(TuogunProductLine record);
// public int updateByPrimaryKey(TuogunProductLine record);